package com.liliudong.pinkyponk.biz.sys.service;

import cn.hutool.core.lang.tree.Tree;
import com.baomidou.mybatisplus.extension.service.IService;
import com.liliudong.pinkyponk.biz.sys.entity.SysMenu;

import java.util.List;

/**
 * SysMenuService
 *
 * @author liliudong
 * @date 2022-06-01 16:20
 **/
public interface SysMenuService extends IService<SysMenu> {

    /**
     * getAuthoritiesByRoleIds
     *
     * @param roleIds
     * @return
     */
    List<String> getAuthoritiesByRoleIds(List<Integer> roleIds);

    /**
     * getAllAuthorities
     *
     * @return
     */
    List<String> getAllAuthorities();

    /**
     * tree
     *
     * @param userId
     * @return
     */
    List<Tree<Integer>> treeByUserIdIgnoreDataScope(Long userId);

    /**
     * listTreeExcludeButton
     *
     * @return
     */
    List<Tree<Integer>> listTreeExcludeButton();

    /**
     * listExcludeButton
     *
     * @return
     */
    List<SysMenu> listExcludeButton();
}
